package kr.hkit.powerjava.chapter07;

import java.util.Scanner;

public class Work05 {
	public static void main(String[] args) {
		int x, y, z;
		int small;
		Scanner sc = new Scanner(System.in);
		System.out.println("정수 3개를 입력하세요");
		x = sc.nextInt();
		y = sc.nextInt();
		z = sc.nextInt();
		if(x>=y){
			small = y;
				if(small>=z){
					small = z;
				}
				else{
				}
		}
		else{
			small = x;
				if(small>=z){
					
					small = z;
				}
				else{
					
				}
		}
		
		System.out.print("최소값은 : "+small);
	}
}
